<include file="Public:header" />
<div class="wrapper">
  <div class="homebox">
    <div class="homebox-left">
      <dl class="clearfix hcatebox">
      	<volist name="websitesCate" id="wbs">
        <dt><a href="{$wbs['url']}">{$wbs['name']}</a></dt>
        <dd>
          <ul class="hcatelist">
          	<volist name="wbs['tree']" id="wbst">
            <li><a href="{$wbst['url']}">{$wbst['name']}</a></li>
            </volist>
          </ul>
        </dd>
        </volist>
      </dl>
      <div class="clear"></div>
      <div class="instat-list">
          <h2>最新入站</h2>
          <ul>
     		 <websites order="in_time DESC" id="rwb" limit="10">
          <li <if condition="($key+1) == 10"> class="last"</if>><a href="{$rwb['url']}"><span>{$key+1}.</span>{$rwb['name']}</a></li>
            </websites>
          </ul>
        </div>
    </div>
    <div class="homebox-right">
      <div class="famebox">
        <h2>站长推荐的网站分类目录</h2>
        <ul class="clearfix famelist">
          <websites type="is_best" id="rwb" limit="5">
          <li><a href="{$rwb['url']}"><img src="http://api.webthumbnail.org?width=320&height=200&screen=1024&url=http://{$rwb['domain']}" width="125" height="100" alt="{$rwb['name']}"><br>{$rwb['name']}</a></li>
            </websites>
        </ul>
      </div>
      <div class="clear"></div>
      <div class="clearfix coolbox">
        <h2>常用网站分类目录导航</h2>
        <ul class="csitelist">
          <volist name="websites" id="wbs">
          <volist name="wbs['tree']" id="cat" key='cak'>
          <li><strong><a href="{$cat['url']}">{$cat['name']}</a></strong><a href="{$cat['url']}" class="more">更多>></a>
          	<volist name="cat['websites']" id="site">
          	<span><a href="{$site['url']}">{$site['name']}</a></span>
          	</volist>
          </li>
          <if condition=" count($wbs['tree']) eq $cak">
          <li class="c">&nbsp;</li>
          </if>
          </volist>
          </volist>
        </ul>
      </div>
      <div class="clear"></div>
      <div class="index-ad">{:W('Ad', 3)}</div>
      <div class="clear"></div>
      <div class="clearfix news">
        <div id="inbox" class="news-left">
          <h2><a href="{:U('/websites/')}">更多>></a>最新收录</h2>
          <ul class="inlist">
          	<websites limit="4">
            	 <li <if condition="($key+1) == 4"> class="last"</if>>
              <div><a href="{$vo['url']}" rel="nofollow"><img src="http://api.webthumbnail.org?width=320&height=200&screen=1024&url=http://{$vo['domain']}" alt="{$vo['name']}"></a></div>
              <p><a href="{$vo['url']}">{$vo['name']}</a><br>
                <span>{$vo['domain']}</span></p>
            </li>
           </websites>
          </ul>
        </div>
        <div class="news-right">
          <h2><a href="{:U('/news/')}">更多>></a>网站分类目录资讯</h2>
          <ul class="news-list">
     		<article limit="9"> <li <if condition="($key+1) == 9"> class="last"</if>><a href="{$vo['url']}">{$vo['name']}</a></li> </article>
          </ul>
        </div>
      </div>
    </div>
  </div>
</div>
<!--friendlinks start-->
<div class="clear"></div>
<dl class="friendlinks">
  <dt>
    <div class="tab-title"><span>友情链接</span></div>
  </dt>
  <dd><friendlinks id="vo"> <a target="_blank" href="{$vo['url']}">{$vo['name']}</a> </friendlinks></dd>
</dl>
<!--friendlinks end-->
<include file="Public:footer" />